﻿using System;
using System.Collections.Generic;
using System.Security.Permissions;

namespace HlELock.Domain.Entities
{
    /// <summary>
    /// 入住信息
    /// </summary>
    public class CheckIn : EntityBase
    {
        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        private string _gender;
        /// <summary>
        /// 性别
        /// </summary>
        public string Gender
        {
            get { return _gender; }
            set { SetProperty(ref _gender, value); }
        }

        
        private string _idType;
        /// <summary>
        /// 证件类型
        /// </summary>
        public string IdType
        {
            get { return _idType; }
            set { SetProperty(ref _idType, value); }
        }

  

        /// <summary>
        /// 证件号
        /// </summary>
        public string IdNumber { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string Contact { get; set; }

        private int _days;
        /// <summary>
        /// 入住天数
        /// </summary>
        public int Days
        {
            get { return _days; }
            set { SetProperty(ref _days, value); EndTime = BeginTime.AddDays(value); }
        }


        private DateTime _beginTime;
        public DateTime BeginTime
        {
            get { return _beginTime; }
            set { SetProperty(ref _beginTime, value); }
        }

        private DateTime _endTime;
        public DateTime EndTime
        {
            get { return _endTime; }
            set { SetProperty(ref _endTime, value); }
        }

        /// <summary>
        /// 车牌号码
        /// </summary>
        public string CarNumber { get; set; }

        /// <summary>
        /// 订单属性
        /// </summary>
        public string OrderAttribute { get; set; }

        /// <summary>
        /// 订单摘要
        /// </summary>
        public string OrderInfo { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        public string PayWay { get; set; }

        /// <summary>
        /// 房间号
        /// </summary>
        public string RoomNumber { get; set; }

        /// <summary>
        /// 押金
        /// </summary>
        public string CashPledge { get; set; }

        /// <summary>
        /// 房价
        /// </summary>
        public string RoomPrice { get; set; }

        /// <summary>
        /// 入住房间信息
        /// </summary>
        public List<CheckInRoom> CheckInRooms { get; set; }
    }

}
